.Net Framework > v2.0.50727 > System > Threading > Interlocked > Exchange Exchange(Double@,Double)
Exchange(Int32@,Int32)
Exchange(Int64@,Int64)
Exchange(IntPtr@,IntPtr)
Exchange(Object@,Object)
Exchange(Single@,Single)


Exchange(Double@,Double)

Category
Method
Description
Sets a double-precision floating point number to a specified value and returns the original value, as an atomic operation.
Type
Double
Character
public, static
Parameters
NameTypeDescription
location1Double
valueDouble
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Exchange(Int32@,Int32)

Category
Method
Description
Sets a 32-bit signed integer to a specified value and returns the original value, as an atomic operation.
Type
Int32
Character
public, static
Parameters
NameTypeDescription
location1Int32
valueInt32
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Exchange(Int64@,Int64)

Category
Method
Description
Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Type
Int64
Character
public, static
Parameters
NameTypeDescription
location1Int64
valueInt64
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Exchange(IntPtr@,IntPtr)

Category
Method
Description
Sets a platform-specific handle or pointer to a specified value and returns the original value, as an atomic operation.
Type
IntPtr
Character
public, static
Parameters
NameTypeDescription
location1IntPtr
valueIntPtr
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Exchange(Object@,Object)

Category
Method
Description
Sets an object to a specified value and returns a reference to the original object, as an atomic operation.
Type
Object
Character
public, static
Parameters
NameTypeDescription
location1Object
valueObject
Attributes
NameValue/Assignment
ReliabilityContractAttributeSystem.Runtime.ConstrainedExecution.Consistency.WillNotCorruptState, System.Runtime.ConstrainedExecution.Cer.Success
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Exchange(Single@,Single)

Category
Method
Description
Sets a single-precision floating point number to a specified value and returns the original value, as an atomic operation.
Type
Single
Character
public, static
Parameters
NameTypeDescription
location1Single
valueSingle
Tags
01892ABD01, 02E3ABA98D, 0376596F91

Software for developers
.Net Components
Delphi Components
Software for Android Developers
More information resources
WinAPI Programmer's Reference
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database